package com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.json;

import com.alibaba.fastjson.serializer.ValueFilter;

public final class ValueFilterX implements ValueFilter {

    private static volatile ValueFilter valueFilter;

    @Override
    public Object process(Object o, String s, Object v) {
        if (v == null)
            return "";
        return v;
    }

    public static ValueFilter get(){
        if(valueFilter == null){
            synchronized (ValueFilterX.class){
                if(valueFilter == null){
                    valueFilter = new ValueFilterX();
                }
            }
        }
        return valueFilter;
    }
}
